
package com.ssh.service.impl;

import com.ssh.dao.UserDao;
import com.ssh.entity.Person;
import com.ssh.entity.User;
import com.ssh.service.UserService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;


@Service
public class UserServiceImpl implements UserService {
    @Autowired
    private UserDao userDao;
    public List<User> getAllUser(String username,String yhbm) {
        List<User> list = userDao.getAllUser(username,yhbm);
        return list;
    }

    @Override
    public User get(String yhid) {
        return userDao.get(yhid);
    }

    @Override
    public void save(User user) {
        userDao.save(user);
    }

    @Override
    public void delete(String yhid) {
        userDao.delete(yhid);
    }


}
